package com.ls.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>通用页面跳转</p>
 * Created by zhezhiyong@163.com on 2017/2/8.
 */
@Controller
public class PageController {

    @GetMapping("/")
    public String admin() {
        return "index1";
    }

    @GetMapping(value = "/login")
    public String login() {
        return "login";
    }

    @GetMapping(value = "/page/{view}")
    public String page(@PathVariable String view) {
        return view;
    }

    @GetMapping(value = "/user")
    public String user() {
        return "admin/user";
    }

    @GetMapping(value = "/role")
    public String role() {
        return "admin/role";
    }

    @GetMapping(value = "/permission")
    public String permission() {
        return "admin/permission";
    }

}
